#ifndef EDITUSERINFOFORM_H
#define EDITUSERINFOFORM_H

#include <QWidget>
#include <module/basicwindows.h>
#include <QCalendarWidget>
#include <data/UserInfo.pb.h>

using namespace proto;
namespace Ui {
class EditUserInfoForm;
}

class EditUserInfoForm : public BasicWindows
{
    Q_OBJECT

public:
    explicit EditUserInfoForm(QWidget *parent = nullptr);
    ~EditUserInfoForm();

protected:
    void loadUserInfo();
    void onButtonSaveClicked();
    void onSetUserInfo(int code, QString message);
    void onHeadshotClicked();
    void onBirthdayClicked();
    void onButtonCancelClicked();

protected slots:
    void setBirthday();

private:
    Ui::EditUserInfoForm *ui;
    data::UserInfo info;
    QCalendarWidget *calenderWidget = nullptr;
};

#endif // EDITUSERINFOFORM_H
